package com.medical.admin.cost.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 订单表
 */
@Data
@TableName(value = "mar_indent")
public class Indent {
    /**
     * 订单主键,编号
     */
    @TableId(value = "indent_id", type = IdType.ASSIGN_ID)
    private Long indentId;

    /**
     * 总金额
     */
    @TableField(value = "total_amount")
    private Long totalAmount;

    /**
     * 支付方式
     */
    @TableField(value = "payment_mode")
    private String paymentMode;

    /**
     * 支付时间
     */
    @TableField(value = "payment_time")
    private Date paymentTime;

    /**
     * 取消订单时间
     */
    @TableField(value = "cancel_time")
    private Date cancelTime;

    /**
     * 订单状态 0未支付 1已支付 2已取消 3已完成 默认1
     */
    @TableField(value = "indent_state")
    private Integer indentState;

    /**
     * 订单来源
     */
    @TableField(value = "indent_source")
    private String indentSource;

    /**
     * 业务类型
     * 1 门诊缴费 2 门诊充值 3住院缴费 4住院充值
     */
    @TableField(value = "business_type")
    private Integer businessType;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 费用类型 1西成药 2中药 3器械使用费
     */
    @TableField(value = "cost_type")
    private Integer costType;

    /**
     * 患者id
     */
    @TableField(value = "patient_id")
    private Long patientId;

    public static final String COL_INDENT_ID = "indent_id";

    public static final String COL_TOTAL_AMOUNT = "total_amount";

    public static final String COL_PAYMENT_MODE = "payment_mode";

    public static final String COL_PAYMENT_TIME = "payment_time";

    public static final String COL_CANCEL_TIME = "cancel_time";

    public static final String COL_INDENT_STATE = "indent_state";

    public static final String COL_INDENT_SOURCE = "indent_source";

    public static final String COL_BUSINESS_TYPE = "business_type";

    public static final String COL_REMARK = "remark";

    public static final String COL_COST_TYPE = "cost_type";

    public static final String COL_PATIENT_ID = "patient_id";
}